.TH "Vision::VisionPlatform" 3 "13 Oct 2009" "Version 2" "zebulon" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Vision::VisionPlatform \- 
.SH SYNOPSIS
.br
.PP
.PP
Inherits \fBVision::ImageCallback\fP.
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBVisionPlatform\fP (Vision::INPUT_SOURCE inputSourceType, const char *sourceName=NULL)"
.br
.RI "\fIDefault constructor. \fP"
.ti -1c
.RI "\fB~VisionPlatform\fP ()"
.br
.RI "\fIDefault destructor. \fP"
.ti -1c
.RI "void \fBChangeSource\fP (Vision::INPUT_SOURCE inputSourceType, const char *sourceName)"
.br
.ti -1c
.RI "bool \fBConnectToNodeManager\fP ()"
.br
.RI "\fISearches for and attempts to connect to the node manager. \fP"
.ti -1c
.RI "bool \fBIsNewFrame\fP () const "
.br
.ti -1c
.RI "bool \fBIsPaused\fP () const "
.br
.ti -1c
.RI "Vision::INPUT_SOURCE \fBSource\fP () const "
.br
.ti -1c
.RI "void \fBDrawIntoDisplayStack\fP (IplImage *inputImage, long xCoor, long yCoor, const char *labelText=0, bool flipImage=false)"
.br
.RI "\fIDraws images unto canvas IplImage. \fP"
.ti -1c
.RI "void \fBStart\fP ()"
.br
.RI "\fIStarts the capture thread. \fP"
.ti -1c
.RI "void \fBTogglePause\fP ()"
.br
.in -1c
.SS "Public Attributes"

.in +1c
.ti -1c
.RI "\fBCvImageCapture\fP \fBvidGrabber\fP"
.br
.RI "\fIUsed to grab video from cameras. \fP"
.ti -1c
.RI "\fBCvImageCapture\fP \fBvidPlayer\fP"
.br
.RI "\fIUsed to grab video from video files. \fP"
.ti -1c
.RI "VideoSubscriber \fBvidSubscriber\fP"
.br
.RI "\fIUsed to grab streaming frames from visual sensors. \fP"
.ti -1c
.RI "int \fBmThreshold\fP"
.br
.ti -1c
.RI "bool \fBmLearnBackground\fP"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBsetup\fP ()"
.br
.RI "\fIPerforms setup of input sources. \fP"
.ti -1c
.RI "void \fBupdate\fP ()"
.br
.RI "\fIPerforms image \fBImageCallback\fP processing on image file sources and updates the frames. \fP"
.ti -1c
.RI "void \fBdraw\fP ()"
.br
.RI "\fIDraws images unto canvas. \fP"
.ti -1c
.RI "void \fBkeyPressed\fP (int key)"
.br
.RI "\fIFunctioned called when a key is pressed. \fP"
.ti -1c
.RI "void \fBmouseMoved\fP (int x, int y)"
.br
.RI "\fIFunction called when the mouse is moved. \fP"
.ti -1c
.RI "void \fBmouseDragged\fP (int x, int y, int button)"
.br
.RI "\fIFunction called when the mouse is dragged. \fP"
.ti -1c
.RI "void \fBmousePressed\fP (int eventType, int x, int y, int flags, void *param)"
.br
.RI "\fIFunctioned called when a key is pressed.. \fP"
.ti -1c
.RI "void \fBmouseReleased\fP ()"
.br
.RI "\fIFunction called when the mouse is released. \fP"
.ti -1c
.RI "void \fBInit\fP ()"
.br
.RI "\fIInitializes analysis variables. \fP"
.ti -1c
.RI "void \fBresetGUIVariables\fP ()"
.br
.RI "\fIResets variables related to user interaction such as selection variables. \fP"
.ti -1c
.RI "void \fBProcessImage\fP (void *args)"
.br
.RI "\fIProcesses the image and calls delegates. \fP"
.in -1c
.SS "Static Protected Member Functions"

.in +1c
.ti -1c
.RI "static void \fBCaptureJausImage\fP (const Address &sourceAddress, const Image &rawImage, void *args)"
.br
.RI "\fIMethod called when an image is received from a JAUS component. \fP"
.ti -1c
.RI "static void \fBmouseHandler\fP (int eventType, int x, int y, int flags, void *param)"
.br
.RI "\fIFunctioned called by OpenCV when a key is pressed. \fP"
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "Address \fBmNodeID\fP"
.br
.RI "\fIID of the node manager. \fP"
.ti -1c
.RI "CvGaussBGStatModelParams * \fBmGaussParams\fP"
.br
.RI "\fI\fBVideo\fP parameters for gaussian background stat model. \fP"
.ti -1c
.RI "CvFGDStatModelParams * \fBmFGDParams\fP"
.br
.RI "\fI\fBVideo\fP parameters for foreground object detection for videos containing complex background. \fP"
.ti -1c
.RI "CvBGStatModel * \fBmBGModel\fP"
.br
.RI "\fIBackground stat model. \fP"
.ti -1c
.RI "CvBGStatModel * \fBmFGModel\fP"
.br
.RI "\fIForeground stat model. \fP"
.ti -1c
.RI "Image \fBmJausFrameImage\fP"
.br
.RI "\fIOriginal captured color frame image from subscription. \fP"
.ti -1c
.RI "IplImage * \fBmBufferImage\fP"
.br
.RI "\fIImage used to buffer between Jaus images and IplImages. \fP"
.ti -1c
.RI "IplImage * \fBmFrameImage\fP"
.br
.RI "\fIOriginal captured color frame image from local source. \fP"
.ti -1c
.RI "\fBVisionPlatformSetup\fP \fBmSetupConfiguration\fP"
.br
.ti -1c
.RI "Vision::INPUT_SOURCE \fBmSource\fP"
.br
.ti -1c
.RI "volatile bool \fBmIsPaused\fP"
.br
.RI "\fIStores play/pause state. \fP"
.ti -1c
.RI "volatile bool \fBmNewFrame\fP"
.br
.RI "\fIReturns true when a new frame is found. \fP"
.ti -1c
.RI "volatile bool \fBmNewJausFrame\fP"
.br
.RI "\fIReturns true when a new frame is received from a Jaus vision node. \fP"
.ti -1c
.RI "const char * \fBmSourceName\fP"
.br
.RI "\fIThe name of the source camera, file path, or directory path. \fP"
.in -1c
.SH "Constructor & Destructor Documentation"
.PP 
.SS "VisionPlatform::VisionPlatform (Vision::INPUT_SOURCE inputSourceType, const char * sourceName = \fCNULL\fP)"
.PP
Default constructor. \fBParameters:\fP
.RS 4
\fIsourceName\fP The name of the source camera, file path, or directory path. 
.RE
.PP

.SH "Member Function Documentation"
.PP 
.SS "void VisionPlatform::CaptureJausImage (const Address & sourceAddress, const Image & rawImage, void * args)\fC [static, protected]\fP"
.PP
Method called when an image is received from a JAUS component. \fBParameters:\fP
.RS 4
\fIsourceAddress\fP Address of node manager. 
.br
\fIrawImage\fP Image data captured by remote vision sensor. 
.br
\fIargs\fP Arguments passed to capture function 
.RE
.PP

.SS "void VisionPlatform::DrawIntoDisplayStack (IplImage * inputImage, long xCoor, long yCoor, const char * labelText = \fC0\fP, bool flipImage = \fCfalse\fP)"
.PP
Draws images unto canvas IplImage. \fBParameters:\fP
.RS 4
\fIinputImage\fP Image to draw unto canvas image. 
.br
\fIxCoor\fP X Coordinate relative to canvas image origin. 
.br
\fIyCoor\fP Y Coordiante relative to canvas image origin. 
.RE
.PP

.SS "void VisionPlatform::Init ()\fC [protected]\fP"
.PP
Initializes analysis variables. Initializes image classifiers and video output variables. 
.SS "void VisionPlatform::ProcessImage (void * args)\fC [protected, virtual]\fP"
.PP
Processes the image and calls delegates. Performs analysis on image. 
.PP
Implements \fBVision::ImageCallback\fP.
.SS "void VisionPlatform::resetGUIVariables ()\fC [protected]\fP"
.PP
Resets variables related to user interaction such as selection variables. Performs setup of GUI parameters. 

.SH "Author"
.PP 
Generated automatically by Doxygen for zebulon from the source code.
